package com.xaaef.grpc.server.rest;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.*;

import java.util.Set;


@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ValidDemoVO implements java.io.Serializable {

    @NotNull(message = "爱好必须填写")
    @Size(min = 1, message = "爱好最少填写一个")
    private Set<String> hobby;

}


